<?php

namespace app\service\index;

use app\db\index\D_adManage;
use app\db\index\D_singlePage;

class S_singlePage
{
    public $D_singlePage;

    public function __construct()
    {
        $this->D_singlePage = new D_singlePage();
    }

    /**
     * 获取所有单页列表
     * @param string $paramObj
     * @return array
     */
    public function getlist($paramObj=""){
        return $this->D_singlePage->getList($paramObj);
    }

    /**
     * 获取单页详细信息
     * @param string $paramObj
     * @return array
     */
    public function info($paramObj=""){
        return $this->D_singlePage->info($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }

    /**
     * 更新点击量
     * @param string $paramObj
     * @return array
     */
    public function upHits($paramObj=""){
        return $this->D_singlePage->upHits($paramObj);
    }
}